{{ form.messages('formMessage') }}
{{ form.messages('csrf') }}
{{ form() }}
<div class="form-group">
    {{ form.render('passwordOld', ['class': 'form-control', 'minlength': '6', 'maxlength': '50']) }}
    {{ form.messages('passwordOld') }}
</div>
<div class="form-group">
    {{ form.render('passwordNew', ['class': 'form-control', 'minlength': '6', 'maxlength': '50']) }}
    {{ form.messages('passwordNew') }}
</div>
<div class="form-group">
    {{ form.render('passwordConfirm', ['class': 'form-control', 'minlength': '6', 'maxlength': '50']) }}
    {{ form.messages('passwordConfirm') }}
</div>
<div class="form-group">
    {{ form.render('submit', ['value': 'Save']) }}
</div>
{{ form.render('csrf') }}
{{ endform() }}